import './assets/main.css'

import { createApp } from 'vue'
import { createPinia } from 'pinia'
import piniaPluginPersistedstate from 'pinia-plugin-persistedstate'
import VueCountdown from '@chenfengyuan/vue-countdown';
import  directive  from './directive/index.js'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'

import App from './App.vue'
import router from './router'
import zhCn from 'element-plus/dist/locale/zh-cn.mjs'

const app = createApp(App)

directive.install(app)




app.use(createPinia().use(piniaPluginPersistedstate))
app.use(router)
app.use(ElementPlus,{
    locale: zhCn,
})
app.component(VueCountdown.name, VueCountdown);

app.mount('#app')

